package com.rk.kbk.dao;

import com.rk.kbk.model.Goods;
import com.rk.kbk.model.GoodsUnit;
import org.springframework.data.jpa.repository.JpaRepository;
import org.springframework.data.jpa.repository.JpaSpecificationExecutor;

import java.util.List;

/**
 * @GoodsUnitDao
 * @商品价格Dao
 * @version : Ver 1.0
 */
public interface GoodsUnitDao extends JpaRepository<GoodsUnit, Long>,JpaSpecificationExecutor {
    List<GoodsUnit> findByGoodsInAndStatus(List<Goods> goods, int status);
    List<GoodsUnit> findByGoodsAndStatus(Goods goods,int status);
    /**
     *   根据商品id获取商品规格额信息
     */
    List<GoodsUnit> findByGoods(Goods goods);

}
